package net.uhuijia.goods.goodsku.persistence.dao;

import net.uhuijia.dao.param.SkuInvertoryParam;
import org.apache.ibatis.annotations.Mapper;
import net.uhuijia.appbase.dao.CrudDao;
import net.uhuijia.goods.goodsku.persistence.basedao.GoodSkuMapper;
import net.uhuijia.goods.goodsku.persistence.model.GoodSku;
import net.uhuijia.goods.goodsku.persistence.model.GoodSkuExample;


@Mapper
public interface GoodSkuDao
     extends GoodSkuMapper,CrudDao<GoodSku,GoodSkuExample> {
    /**
     * @Author xzj
     * @Description //查询商品规格库存数量
     * @Date  2018/10/8
     * @Param
     * @return
     **/
    Integer getGoodSkuInvertory(SkuInvertoryParam skuInvertoryParam);
    /**
     * @Author xzj
     * @Description //根据商品Id 和匹配Id 查询商品规格
     * @Date  2018/10/8
     * @Param
     * @return
     **/
    GoodSku getGoodSkuBySpuIdAndPropertyId(SkuInvertoryParam skuInvertoryParam);
}